home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June (Extra) / CHIP 2006-06.3.iso / program / opensource / clamav-devel.exe / contrib / Windows / clamadoc.cpp next >
Encoding:
C/C++ Source or Header  |  2006-05-16  |  2.5 KB  |  102 lines

  1. // clamadoc.cpp : implementation of the CClamavDoc class
  2. //
  3.  
  4. /*
  5.  *  Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
  6.  *
  7.  *  This program is free software; you can redistribute it and/or modify
  8.  *  it under the terms of the GNU General Public License as published by
  9.  *  the Free Software Foundation; either version 2 of the License, or
  10.  *  (at your option) any later version.
  11.  *
  12.  *  This program is distributed in the hope that it will be useful,
  13.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *  GNU General Public License for more details.
  16.  *
  17.  *  You should have received a copy of the GNU General Public License
  18.  *  along with this program; if not, write to the Free Software
  19.  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  20.  *  MA 02110-1301, USA.
  21.  */
  22.  
  23. #include "stdafx.h"
  24. #include "resource.h"
  25. #include "clamav.h"
  26.  
  27. #include "clamadoc.h"
  28.  
  29. #ifdef _DEBUG
  30. #undef THIS_FILE
  31. static char BASED_CODE THIS_FILE[] = __FILE__;
  32. #endif
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CClamavDoc
  36.  
  37. IMPLEMENT_DYNCREATE(CClamavDoc, CDocument)
  38.  
  39. BEGIN_MESSAGE_MAP(CClamavDoc, CDocument)
  40.  
  41.         // NOTE - the ClassWizard will add and remove mapping macros here.
  42.         //    DO NOT EDIT what you see in these blocks of generated code!
  43.     //}}AFX_MSG_MAP
  44. END_MESSAGE_MAP()
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CClamavDoc construction/destruction
  48.  
  49. CClamavDoc::CClamavDoc()
  50. {
  51.     // TODO: add one-time construction code here
  52.  
  53. }
  54.  
  55. CClamavDoc::~CClamavDoc()
  56. {
  57. }
  58.  
  59. BOOL CClamavDoc::OnNewDocument()
  60. {
  61.     if (!CDocument::OnNewDocument())
  62.         return FALSE;
  63.  
  64.     // TODO: add reinitialization code here
  65.     // (SDI documents will reuse this document)
  66.  
  67.     return TRUE;
  68. }
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CClamavDoc serialization
  72.  
  73. void CClamavDoc::Serialize(CArchive& ar)
  74. {
  75.     if (ar.IsStoring())
  76.     {
  77.         // TODO: add storing code here
  78.     }
  79.     else
  80.     {
  81.         // TODO: add loading code here
  82.     }
  83. }
  84.  
  85. /////////////////////////////////////////////////////////////////////////////
  86. // CClamavDoc diagnostics
  87.  
  88. #ifdef _DEBUG
  89. void CClamavDoc::AssertValid() const
  90. {
  91.     CDocument::AssertValid();
  92. }
  93.  
  94. void CClamavDoc::Dump(CDumpContext& dc) const
  95. {
  96.     CDocument::Dump(dc);
  97. }
  98. #endif //_DEBUG
  99.  
  100. /////////////////////////////////////////////////////////////////////////////
  101. // CClamavDoc commands
  102.